package com.ms.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class GenreUpdateDTO {
    @NotBlank(message = "分类名称不能为空")
    @Size(max = 50, message = "名称长度不能超过50字符")
    private String name;

    @Schema(description = "新的分类描述")
    private String description;

    @Schema(description = "父级分类Id")
    private Integer parentId;

    @Schema(description = "新的分类层级路径")
    private String levelPath;
}
